# Makefile for libpfmm
#  Written by Mark A. Watson
#
include ../makeconfig

objects = \
pfmm_global_types.o\
pfmm_J_builder.o\
pfmm_qlm_builder.o\
pfmm_box_builder.o\
pfmm_periodic_images.o\
pfmm_Vff_driver.o\
pfmm_main.o

all: objcomp

objcomp : $(objects)
	$(RM) libpfmm.a
	$(AR) $(ARFLAGS) libpfmm.a $(objects)
	$(RANLIB) libpfmm.a

clean :
	$(RM) *.o *.mod *.a

veryclean :
	$(RM) *.o *.mod *.a

.SUFFIXES:.f
.f.o: 
	$(F77) $(F77FLAGS) -c $<
.SUFFIXES:.f90
.f90.o: 
	$(F90) $(F90FLAGS) -I../fmm_lib    \
                      -I../util_lib    \
                      -c $<

